﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neoseeker.NAMFox.Tests
{
    public class BrowserTab
    {
        private int index;

        public BrowserTab(int index)
        {
            this.index = index;
        }

        public string Location
        {
            get { return TestBase.Selenium.Processor.GetString("getTabLocation", new string[] { index.ToString() }); }
        }

        public void Close()
        {
            TestBase.Selenium.Processor.DoCommand("closeTab", new string[] { index.ToString() });
        }

        public void Select()
        {
            TestBase.Selenium.Processor.DoCommand("selectTab", new string[] { index.ToString() });
        }
    }
}
